package com.gxa.logistics.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.sql.Date;

@Data
@ApiModel(value = "新增部门实体")
public class DepartmentSaveDTO implements Serializable {

    @ApiModelProperty(name = "deptName",notes = "部门名称",dataType = "String",required = true)
    @NotBlank(message = "部门名称不能为空")
    @Size(min = 2, message = "部门名称：请输入至少2个字符")
    private String deptName;

    @ApiModelProperty(name = "description",notes = "部门描述",dataType = "String",required = true)
    @NotBlank(message = "部门描述不能为空")
    @Size(min = 2, message = "部门描述：请输入至少2个字符")
    private String description;


}
